<?php



class DemandeSupervisionMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.DemandeSupervisionMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('opds');

		$tMap = $this->dbMap->addTable('demande_supervision');
		$tMap->setPhpName('DemandeSupervision');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('IDDEMANDE_SUPERVISION', 'IddemandeSupervision', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addForeignKey('DEMANDE_ID', 'DemandeId', 'int', CreoleTypes::INTEGER, 'demande', 'DEMANDE_ID', false, null);

		$tMap->addColumn('DATE', 'Date', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('SUPERVISEUR', 'Superviseur', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('MOYENS_ORU', 'MoyensOru', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DELAI', 'Delai', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('IS_OK', 'IsOk', 'boolean', CreoleTypes::BOOLEAN, false, null);

		$tMap->addColumn('IS_DONNEES_DISPO', 'IsDonneesDispo', 'boolean', CreoleTypes::BOOLEAN, false, null);

		$tMap->addColumn('COMMENTAIRE', 'Commentaire', 'string', CreoleTypes::LONGVARCHAR, false, null);

	} 
} 